﻿
namespace RockPaperScissors.Web.Utility
{
    public static class WebHelper
    {
        public static string GetGameImageFromMove(string move)
        {
            string tmpRtn = @"/images/none.jpg";

            switch (move.ToLower())
            {
                case "rock":
                    tmpRtn = @"/images/rock.jpg";
                    break;
                case "paper":
                    tmpRtn = @"/images/paper.jpg";
                    break;
                case "scissors":
                    tmpRtn = @"/images/scissors.jpg";
                    break;
                case "dynamite":
                    tmpRtn = @"/images/dynamite.jpg";
                    break;
                default:
                    tmpRtn = @"/images/none.jpg";
                    break;
            }

            // return
            return tmpRtn;
        }
    }
}
